package com.ithjh.dao;

import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Update;
import org.springframework.stereotype.Repository;


public interface AccountDao {
    @Update("update tb_account set money = money + #{money} where name = #{name}")
    void inMoney(@Param("name")String name,@Param("money") int money);

    @Update("update tb_account set money = money - #{money} where name = #{name}")
    void outMoney(@Param("name")String name,@Param("money") int money);
}
